
//
//  ModelTableViewCell.m
//  11213tableview
//
//  Created by 小白 on 16/3/7.
//  Copyright © 2016年 小白. All rights reserved.
//

#import "ModelTableViewCell.h"

@implementation ModelTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UIImageView *imgView = [[UIImageView alloc]initWithFrame:CGRectMake(5, 5, 200, 200)];
        UILabel *label1 = [[UILabel alloc]initWithFrame:CGRectMake(210, 5, 100, 40)];
        UILabel *label2 = [[UILabel alloc]initWithFrame:CGRectMake(210, 50, 100, 30)];
        UILabel *label3 = [[UILabel alloc]initWithFrame:CGRectMake(210, 90, 100, 30)];
        UILabel *label4 = [[UILabel alloc]initWithFrame:CGRectMake(210, 130, 100, 30)];
        UILabel *label5 = [[UILabel alloc]initWithFrame:CGRectMake(210, 170, 100, 30)];
        label1.font = [UIFont systemFontOfSize:16 weight:2];
        label2.textColor = [UIColor redColor];
        [self.contentView addSubview:label1];
        [self.contentView addSubview:label2];
        [self.contentView addSubview:label3];
        [self.contentView addSubview:label4];
        [self.contentView addSubview:label5];
        [self.contentView addSubview:imgView];
        
        self.imgView = imgView;
        self.productName = label1;
        self.price = label2;
        self.descriptio = label3;
        self.saleCount = label4;
        self.forsale = label5;
  
        
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
}






@end
